home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / mis_util / buf01 / bfu01.doc next >
Text File  |  1986-01-19  |  8KB  |  265 lines

  1.  
  2.  
  3.                      BATCH  FILE  UTILITIES  -  VERSION  1.0
  4.  
  5.  
  6.                   BFU01.ARC should contain the following files:
  7.                   --------------------------------------------
  8.  
  9.               VIDEOCHK.COM   SETCURSR.COM   SETCOLOR.COM   WAIT.COM
  10.  
  11.                      FULLDATE.COM   TIME12HR.COM   TODAY.COM
  12.  
  13.  
  14.  
  15.  
  16.     These programs were written to provide myself with a few more functions
  17.  
  18.     within DOS batch file processing.  Technically they are very simple in
  19.  
  20.     nature and were meant to be that way.  I had given copies of them to
  21.  
  22.     several friends who also found them to be useful.  They suggested that
  23.  
  24.     I place them in the public domain.  So, here they are.  I hope that
  25.  
  26.     they can also provide you with some additional functions within batch
  27.  
  28.     file processing.
  29.  
  30.  
  31.  
  32.  
  33.     The programs were written in Borland's Turbo Pascal.  They are very
  34.  
  35.     short programs which consist mostly of DOS and/or BIOS interrupt calls.
  36.  
  37.     Each of these programs requires no dynamic space allocation and were
  38.  
  39.     compiled accordingly (i.e. these programs will not try to eat up all of
  40.  
  41.     your available memory).  Each of these programs have been tested within
  42.  
  43.     the following environments:
  44.  
  45.  
  46.          * PC DOS Version 2.1, 3.0 and 3.1
  47.  
  48.  
  49.          * IBM PC, XT and AT
  50.  
  51.            COMPAQ  Portables
  52.  
  53.  
  54.          * IBM    Mono and Color cards
  55.  
  56.            STB    Mono/Color cards
  57.  
  58.            COMPAQ Mono/Color card
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                    ( page 1 )
  65.  
  66.  
  67.  
  68.  
  69.                      BATCH  FILE  UTILITIES  -  VERSION  1.0
  70.  
  71.  
  72.     PROGRAM NAME / DESCRIPTION
  73.     -----------------------------------------------------------------------
  74.  
  75.     VIDEOCHK.COM   The purpose of this program is to determine which video
  76.                    adapter is currently in use and send a return code which
  77.                    can be examined by the DOS batch command: IF ERRORLEVEL.
  78.                    This program is very useful for determining which video
  79.                    drivers should be loaded.
  80.  
  81.                    Return Codes
  82.                    --------------------------
  83.                    0  =  Mono  Adapter in use
  84.                    1  =  Color adapter in use
  85.  
  86.  
  87.     SETCURSR.COM   The purpose of this program is to set and/or reset the
  88.                    cursor.  The program accepts one optional command line
  89.                    parameter which is used to indicate the cursor type to
  90.                    be used.  The optional parameter values are: N, B or O,
  91.                    where N = Normal,  B = Block  and  O = Turn Cursor Off.
  92.                    These values may be typed in upper or lower case.  If
  93.                    this program is executed with an invalid or no parm, the
  94.                    cursor setting will be defaulted to <N>ormal.
  95.  
  96.                    Usage:  A>SETCURSR {N, B or O}.
  97.                    -----
  98.  
  99.  
  100.     SETCOLOR.COM   The purpose of this program is to set and/or reset the
  101.                    foreground and background colors, specified by entering
  102.                    two command line parameters.  If this program is
  103.                    executed with invalid or no parms, the following default
  104.                    colors will be used: ForeGround = 7,  BackGround = 0.
  105.  
  106.                    Color Number  -  Name
  107.                    -----------------------------
  108.                               0  -  Black
  109.                               1  -  Blue
  110.                               2  -  Green
  111.                               3  -  Cyan
  112.                               4  -  Red
  113.                               5  -  Magenta
  114.                               6  -  Brown
  115.                               7  -  Light Gray
  116.                               8  -  Dark  Gray
  117.                               9  -  Light Blue
  118.                              10  -  Light Green
  119.                              11  -  Light Cyan
  120.                              12  -  Light Red
  121.                              13  -  Light Magenta
  122.                              14  -  Yellow
  123.                              15  -  White
  124.  
  125.                    Usage:  A>SETCOLOR Foreground# Background#
  126.                    -----
  127.                            A>SETCOLOR 15 1
  128.  
  129.  
  130.                                    ( page 2 )
  131.  
  132.  
  133.  
  134.  
  135.                      BATCH  FILE  UTILITIES  -  VERSION  1.0
  136.  
  137.  
  138.     PROGRAM NAME / DESCRIPTION
  139.     -----------------------------------------------------------------------
  140.  
  141.     WAIT.COM       This program is very similar to the DOS batch command:
  142.                    PAUSE.  However, this program displays no message,
  143.                    allowing you to preceed it with an "ECHO" message of
  144.                    your choice.  The program also excepts an optional
  145.                    command line parameter.  This parameter can be any ASCII
  146.                    CHARACTER, which must be entered from the keyboard
  147.                    before the batch file will continue.  If the program is
  148.                    executed with no command line parameter, then pressing
  149.                    ANY keyboard key will continue the processing.
  150.  
  151.                    Usage:  A>WAIT {ASCII character to "wait" for}
  152.                    -----
  153.                            A>WAIT *
  154.  
  155.                              For the above example, processing will not
  156.                              continue until a `*' is entered from the
  157.                              keyboard.
  158.  
  159.  
  160.     FULLDATE.COM   The purpose of this program is to display the "full"
  161.                    current system date (i.e. Wednesday, January 1st, 1986).
  162.                    The foreground and background colors used for the
  163.                    display may be set using two optional command line
  164.                    parmameters.  If the command line parameters are invalid
  165.                    or not entered, the following default display colors
  166.                    will be used: Foreground = 7,  Background = 0.
  167.                    (See the Color Chart used by SETCOLOR.COM.)
  168.  
  169.                    Usage:  A>FULLDATE foreground# background#
  170.                    -----
  171.  
  172.  
  173.     TIME12HR.COM   The purpose of this program is to display the current
  174.                    time as a "normal" 12 hour display (i.e.  15:10:49  is
  175.                    displayed as  3:10:49 p.m.).
  176.                    The foreground and background colors used for the
  177.                    display may be set using two optional command line
  178.                    parmameters.  If the command line parameters are invalid
  179.                    or not entered, the following default display colors
  180.                    will be used: Foreground = 7,  Background = 0.
  181.                    (See the Color Chart used by SETCOLOR.COM.)
  182.  
  183.                    Usage:  A>TIME12HR foreground# background#
  184.                    -----
  185.  
  186.  
  187.     TODAY.COM      The purpose of this program is to display the "full"
  188.                    date and "12" hour clock on the same display line.
  189.                    The foreground and background colors used for the
  190.                    display may be set using two optional command line
  191.                    parmameters.  If the command line parameters are invalid
  192.                    or not entered, the following default display colors
  193.                    will be used: Foreground = 7,  Background = 0.
  194.  
  195.  
  196.                                    ( page 3 )
  197.  
  198.  
  199.  
  200.  
  201.                      BATCH  FILE  UTILITIES  -  VERSION  1.0
  202.  
  203.  
  204.                    (See the Color Chart used by SETCOLOR.COM.)
  205.  
  206.                    Usage:  A>TODAY foreground# background#
  207.                    -----
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.                                    ( page 4 )
  263.  
  264.  
  265.